<!DOCTYPE html>
<html>
<head>
	<!-- Style -->
	<link href="/static/css/admin_style.css" rel="stylesheet" type="text/css">
	<link href="/static/ui/css/custom-theme/ui.css" rel="stylesheet" type="text/css">
	{% block style_add_block %}
	{% endblock %}
	<!-- JS -->
	<script type="text/javascript" src="/static/js/jquery.js"></script>
	<script type="text/javascript" src="/static/ui/js/jquery-ui.min.js"></script>
	{% block js_add_block %}
	{% endblock %}
	<title>{% block title_block %}Evermetal :: Admin panel :: {{ title }}{% endblock %}</title>
	{# TODO: jquery-ui add here #}
	<script type="text/javascript">
		$(function() {
			$(".ui-button").button()
		})
	</script>
	{% block head_block %}
	{% endblock %}
</head>
<body>
	{% block body_block %}
		<div id="navigate-block">
			<div class="div-left">
				{% block navigate_block %}
					{% for nav in navigate_items %}
						{% if forloop.last %}
							<span>{{ nav.name }}</span>
						{% else %}
							<span><a href="{{ nav.url }}">{{ nav.name }}</a></span>
						{% endif %}
						{% if not forloop.last %}
							<span>&rsaquo;</span>
						{% endif %}
					{% endfor %}
				{% endblock %}
			</div>
			<div class="div-right">
				<a href="/">Root page</a>
				&nbsp;
				{% block logout_block %}
					<a href="/profile/logout/">Logout</a>
				{% endblock %}
			</div>
		</div><br>
		<div id="admin-content">
			{% block content_block %}
				<h2>{{ on_page_title }}</h2>
			{% endblock %}
		</div>
	{% endblock %}
</body>
</html>